package com.cskaoyan.mall.bean.vo;

import lombok.Data;

import java.util.List;

/**
 * @name zhangguannan
 * @Date 2021-01-10 21:59
 */
@Data
public class OrderStatVO {

    private List<String> columns;
    private List<RowsBean> rows;

    public static OrderStatVO data( List<String> columns,List<RowsBean> rows){
        OrderStatVO orderStatVO = new OrderStatVO();
        orderStatVO.setRows(rows);
        orderStatVO.setColumns(columns);
        return orderStatVO;
    }

    @Data
    public static class RowsBean {
        /**
         * amount : 4989.0
         * orders : 4
         * customers : 3
         * day : 2020-04-27
         * pcr : 1663.0
         */

        private Double amount;
        private Integer orders;
        private Integer customers;
        private String day;
        private Double pcr;
        
    }
}
